import axios from '../axios.js'


export default {
    //新增销售员账号
    addSalespersons(data) {
        return axios({
            url: '/salespersons/addSalespersons',
            method: 'post',
            data
        })
    },
    //查看所有销售员信息
    getSalespersons() {
        return axios({
            url: '/salespersons/getSalespersons',
            method: 'get'
        })
    },
    //删除销售员
    deleteSalespersons(data) {
        return axios({
            url: '/salespersons/deleteSalespersons',
            method: 'post',
            data
        })
    },
    //修改销售员数据
    updateSalespersons(data) {
        return axios({
            url: '/salespersons/updateSalespersons',
            method: 'post',
            data
        })
    },
    //查看该销售员负责的客户列表
    getCustomerList() {
        return axios({
            url: '/salespersons/getCustomerList',
            method: 'get'
        })
    },
    //查看该销售员负责的客户列表List
    getCustomerList1(data) {
        return axios({
            url: '/salespersons/getCustomerList1',
            method: 'post',
            data
        })
    }
}